package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuXin
 * @since 2018-09-12
 */
@TableName("jxc_manager_goods")
public class ManagerGoods extends Model<ManagerGoods> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 商品编码
     */
    @TableField("goods_code")
    private String goodsCode;
    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;
    /**
     * 商品型号
     */
    @TableField("goods_model")
    private String goodsModel;
    /**
     * 商品计量单位
     */
    @TableField("goods_unit")
    private String goodsUnit;
    /**
     * 采购价
     */
    @TableField("goods_purchase_price")
    private BigDecimal goodsPurchasePrice;
    /**
     * 出售价格
     */
    @TableField("goods_selling_price")
    private BigDecimal goodsSellingPrice;
    /**
     * 库存数量
     */
    @TableField("goods_inventory_quantity")
    private Integer goodsInventoryQuantity;
    /**
     * 库存下限
     */
    @TableField("goods_min_num")
    private Integer goodsMinNum;
    /**
     * 商品上次采购价格
     */
    @TableField("goods_last_purchase_price")
    private BigDecimal goodsLastPurchasePrice;
    /**
     * 预警状态
     */
    @TableField("alarm_state")
    private Integer alarmState;
    /**
     * 创建者
     */
    @TableField("create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新者
     */
    @TableField("update_by")
    private String updateBy;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * 备注信息
     */
    private String remarks;
    /**
     * 删除标记（0：正常；1：删除）
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 供应商id
     */
    @TableField("supplier_id")
    private Long supplierId;
    /**
     * id
     */
    @TableField("goods_category_id")
    private Long goodsCategoryId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsModel() {
        return goodsModel;
    }

    public void setGoodsModel(String goodsModel) {
        this.goodsModel = goodsModel;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public BigDecimal getGoodsPurchasePrice() {
        return goodsPurchasePrice;
    }

    public void setGoodsPurchasePrice(BigDecimal goodsPurchasePrice) {
        this.goodsPurchasePrice = goodsPurchasePrice;
    }

    public BigDecimal getGoodsSellingPrice() {
        return goodsSellingPrice;
    }

    public void setGoodsSellingPrice(BigDecimal goodsSellingPrice) {
        this.goodsSellingPrice = goodsSellingPrice;
    }

    public Integer getGoodsInventoryQuantity() {
        return goodsInventoryQuantity;
    }

    public void setGoodsInventoryQuantity(Integer goodsInventoryQuantity) {
        this.goodsInventoryQuantity = goodsInventoryQuantity;
    }

    public Integer getGoodsMinNum() {
        return goodsMinNum;
    }

    public void setGoodsMinNum(Integer goodsMinNum) {
        this.goodsMinNum = goodsMinNum;
    }

    public BigDecimal getGoodsLastPurchasePrice() {
        return goodsLastPurchasePrice;
    }

    public void setGoodsLastPurchasePrice(BigDecimal goodsLastPurchasePrice) {
        this.goodsLastPurchasePrice = goodsLastPurchasePrice;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getGoodsCategoryId() {
        return goodsCategoryId;
    }

    public void setGoodsCategoryId(Long goodsCategoryId) {
        this.goodsCategoryId = goodsCategoryId;
    }

    public Integer getAlarmState() {
        return alarmState;
    }

    public void setAlarmState(Integer alarmState) {
        this.alarmState = alarmState;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ManagerGoods{" +
        "id=" + id +
        ", goodsCode=" + goodsCode +
        ", goodsName=" + goodsName +
        ", goodsModel=" + goodsModel +
        ", goodsUnit=" + goodsUnit +
        ", goodsPurchasePrice=" + goodsPurchasePrice +
        ", goodsSellingPrice=" + goodsSellingPrice +
        ", goodsInventoryQuantity=" + goodsInventoryQuantity +
        ", goodsMinNum=" + goodsMinNum +
        ", goodsLastPurchasePrice=" + goodsLastPurchasePrice +
        ", createBy=" + createBy +
        ", createDate=" + createDate +
        ", updateBy=" + updateBy +
        ", updateDate=" + updateDate +
        ", remarks=" + remarks +
        ", delFlag=" + delFlag +
        ", supplierId=" + supplierId +
        ", goodsCategoryId=" + goodsCategoryId +
        "}";
    }
}
